<template>
  <div class="main">
    <div class="fish-layer" v-if="websiteTip">
      <div class="triangle"></div>
      <i class="icon-logos iconfont icon-icon-test-copy-copy"></i>
      <i class="close-icon el-icon-close iconfont" @click="handleCloseWebsite"></i>
      <i class="iconfont icon-warm icon-huaban18"></i>
      <div>
        <p>
          {{ $t('public.websizeTip') }}
        </p>
        <p>{{ $t('public.websizeTip1') }}</p>
      </div>
      <div class="flex website">
        <i class="iconfont icon-anquan1"></i>
        <a href="https://newdex.io">https://newdex.io</a>
      </div>
      <div class="flex website">
        <i class="iconfont icon-anquan1"></i>
        <a href="https://newdex.vip">https://newdex.vip</a>
      </div>
    </div>

    <!-- 首页活动弹窗组件 -->
    <div>
      <activity-layer />
    </div>

    <!-- banner -->
    <div>
      <banner :type="1"/>
    </div>
    <a :href="detail[$store.state.app.language]" target="_blank" ref="lookDetailAction"></a>
    <a :href="detailTp[$store.state.app.language]" target="_blank" ref="lookTpDetailAction"></a>
    <a :href="detailBp[$store.state.app.language]" target="_blank" ref="lookBpDetailAction"></a>

    <!-- 公告 -->
    <div>
      <!-- <div class="news"> -->
      <notice-content />
      <!-- </div> -->
    </div>
    <!-- 推荐交易对 -->
    <!-- <symbol-recommend v-if="$appName==='eosNewdex'"/> -->
    <symbol-recommend />
    <div class="contentData" style="padding:20px 0px;">
      <div class="mainView">
        <!-- <div class="flex flexb">
          <div class="main-item" v-for="(item, $index) in hotData" :key="$index">
            <div class="">
              <span class="name">
                <span class="jyd-left">{{ item.symbol.split('_')[0] }}</span>
                <span class="jyd-right">{{ '/ ' + item.symbol.split('_')[1] }}</span>
              </span>
              <span class="percent fRight"
              :class="item.quoteChange24H > 0 ? 'green' : 'red'">
                {{ item.quoteChange24H }}%
              </span>
            </div>
            <div class="price">
              <span :class="item.quoteChange24H > 0 ? 'green' : 'red'">{{ item.realTimePrice }}</span> /
              <span class="">￥98.89</span>
            </div>
            <div class="">
              成交额:<span>{{ item.dealCount24H }}</span> <span>{{ item.symbol.split('_')[1] }}</span>
            </div>
          </div>
        </div> -->
        <div class="tableDiv">
          <vue-nav />
          <vue-table />
        </div>
        <button class="more devBtn devBtnMany" @click="handleGoMarket">{{$t('index.Tomore')}}</button>
      </div>
    </div>
    <div class="content contentCharacteristic">
      <div class="mainView">
        <div class="characteristicTitle">{{$t('index.special')}}</div>
      </div>
      <div class="items item-1">
        <div class="mainView">
          <el-row v-if="$appName==='eosNewdex'">
            <el-col :span="12"
            :offset="1">
              <div class="item-center">
                <div class="item-title">{{$t('index.experience')}}</div>
                <div class="item-tip">{{$t('index.experienceTip1')}}</div>
                <div class="item-tip">{{$t('index.experienceTip2')}}</div>
                <div class="item-tip">{{$t('index.experienceTip3')}}</div>
              </div>
            </el-col>
            <el-col :span="11">
              <img src="../../assets/img/mainIndex/imgEos1.png?v=1" alt="">
            </el-col>
          </el-row>
          <el-row v-if="$appName==='tronNewdex'">
            <el-col :span="12"
            :offset="1">
              <div class="item-center">
                <div class="item-title">{{$t('index.experienceTron')}}</div>
                <div class="item-tip">{{$t('index.experienceTronTip1')}}</div>
                <div class="item-tip">{{$t('index.experienceTronTip2')}}</div>
                <div class="item-tip">{{$t('index.experienceTronTip3')}}</div>
              </div>
            </el-col>
            <el-col :span="11">
              <img src="../../assets/img/mainIndex/imgTron1.png?v=1" alt="">
            </el-col>
          </el-row>
        </div>
      </div>
      <div class="items item-2">
        <div class="mainView">
          <el-row>
            <el-col :span="11"
              :offset="0">
              <img style="margin-left: 30px;" src="../../assets/img/mainIndex/imgEos2.png?v=1" alt="" v-if="$appName==='eosNewdex'">
              <img style="margin-left: 30px;" src="../../assets/img/mainIndex/imgTron2.png?v=1" alt="" v-if="$appName==='tronNewdex'">
            </el-col>
            <el-col :span="12"
            :offset="1">
              <div class="item-center"
                style="margin-left: 150px;">
                <div class="item-title">{{$t('index.safe')}}</div>
                <div class="item-tip">{{$t('index.safeTip1')}}</div>
                <div class="item-tip">{{$t('index.safeTip2')}}</div>
                <div class="item-tip">{{$t('index.safeTip3')}}</div>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>
      <div class="items item-3">
        <div class="mainView">
          <el-row v-if="$appName==='eosNewdex'">
            <el-col :span="12"
              :offset="1">
              <div class="item-center">
                <div class="item-title">{{$t('index.data')}}</div>
                <div class="item-tip">{{$t('index.dataTip1')}}</div>
                <div class="item-tip">{{$t('index.dataTip2')}}</div>
                <div class="item-tip">{{$t('index.dataTip3')}}</div>
              </div>
            </el-col>
            <el-col :span="11">
              <img src="../../assets/img/mainIndex/imgCommon3.png?v=1" alt="">
            </el-col>
          </el-row>
          <el-row v-if="$appName==='tronNewdex'">
            <el-col :span="12"
              :offset="1">
              <div class="item-center">
                <div class="item-title" style="line-height: 40px;">{{$t('index.dataTron')}}</div>
                <div class="item-title" style="line-height: 40px; margin-bottom: 20px;">{{$t('index.dataTron1')}}</div>
                <div class="item-tip">{{$t('index.dataTronTip1')}}</div>
                <div class="item-tip">{{$t('index.dataTronTip2')}}</div>
                <div class="item-tip">{{$t('index.dataTronTip3')}}</div>
              </div>
            </el-col>
            <el-col :span="11">
              <img src="../../assets/img/mainIndex/imgCommon3.png?v=1" alt="">
            </el-col>
          </el-row>
        </div>
      </div>
      <!-- <div class="items item-4">
        <div class="mainView">
          <el-row>
            <el-col :span="10" :offset="0">
              <img src="../../assets/img/mainIndex/img4.png" alt="">
            </el-col>
            <el-col :span="14">
              <div class="item-center">
                <div class="item-title">{{$t('index.stable')}}</div>
                <div class="item-tip">{{$t('index.stableTip1')}}</div>
                <div class="item-tip">{{$t('index.stableTip2')}}</div>
              </div>
            </el-col>
          </el-row>
        </div>
      </div> -->
    </div>
    <!-- <div class="content contentCooperation">
      <div class="mainView">
        <div class="cooperationTitle">{{$t('index.cooperativePartner')}}</div>
        <el-row class="bgImg-items">
          <el-col :span="6">
            <a href="javascript:;" @click="handleTest"><div class="bgImg-item"></div></a>
          </el-col>
          <el-col :span="6">
            <a href="javascript:;" @click="handleTest"><div class="bgImg-item"></div></a>
          </el-col>
          <el-col :span="6">
            <a href="javascript:;" @click="handleTest"><div class="bgImg-item"></div></a>
          </el-col>
          <el-col :span="6">
            <a href="javascript:;" @click="handleTest"><div class="bgImg-item"></div></a>
          </el-col>
        </el-row>
      </div>
    </div> -->
    <div class="content contentMoreDev">
      <div class="mainView">
        <div class="devTitle">{{$t('index.dev')}}</div>
        <div class="subDevTitle">{{$t('index.devTitle')}}</div>
        <a href="https://dl.340wan.com/newdex-v1.9.0.apk" style="visibility: hidden;" ref="androidDownload"></a>
        <div class="dev flexb devzdbox">
          <div style="width: 33%; text-align: left">
            <el-popover
              placement="bottom"
              width="180"
              trigger="hover"
              popper-class="ewmPopover">
              <a class="devBtn devPop felx" style="padding-bottom: 20px" slot="reference">
                <i class="iconfont icon-huaban4" style="font-size: 39px;"></i><span>iPhone</span>
              </a>
              <div style="padding: 10px 10px 3px;" v-if="$appName==='eosNewdex'">
                <img class="op8" src="../../assets/img/mainIndex/downloadewm.png?v=1.0"/>
                <p style="padding-top: 3px; font-size: 14px;">{{$t('index.scanDownload')}}</p>
              </div>
              <span class="devBtn" v-else>{{$t('index.development')}}</span>
            </el-popover>
          </div>
          <div style="width: 33%; text-align: right; margin-bottom: -7px;">
            <el-popover
              placement="bottom"
              width="180"
              trigger="hover"
              popper-class="ewmPopover">
              <a class="devBtn devPop flex" style="padding-bottom: 10px" slot="reference">
                <i class="iconfont icon-huaban5" style="font-size: 40px;"></i><span>Android</span>
              </a>
              <div style="padding: 10px 10px 3px; cursor: pointer;" v-if="$appName==='eosNewdex'">
                <img class="op8" src="../../assets/img/mainIndex/downloadewm.png?v=1.0" @click="handleDownload"/>
                <p style="cursor: pointer;padding-top: 3px; font-size: 14px;">{{$t('index.scanOrClickDownload')}}</p>
              </div>
              <span class="devBtn" v-else>{{$t('index.development')}}</span>
            </el-popover>
          </div>
          <div style="width: 33%; text-align: right">
            <el-popover
              placement="bottom"
              width="150"
              trigger="hover"
              popper-class="ewmPopover">
              <a class="devBtn devPop" style="padding-bottom: 20px" slot="reference">
                <i class="iconfont icon-huaban3" style="font-size: 33px;"></i><span>{{$t('index.scanDesktop')}}</span>
              </a>
              <span class="devBtn">{{$t('index.development')}}</span>
            </el-popover>
          </div>
        </div>
      </div>
    </div>
    <!-- <div class="content contentLeader">
      <div class="mainView">
        <div class="iconfont logoicon icon-huaban"></div>
        <div class="leaderTip">{{$t('index.tip')}}</div>
      </div>
    </div> -->
  </div>
</template>

<script>
import bus from '@/utils/bus';
// import { EosModel } from '@/utils/eos';
import vueNav from '@/components/VueNav';
import vueTable from '@/components/VueTable';
import MyVideo from '@/components/Video';
import NoticeContent from '@/components/NoticeContent';
import Banner from '@/components/Banner';
import ActivityLayer from '@/components/ActivityLayer';
import SymbolRecommend from '@/components/SymbolRecommend'; // 推荐交易对
// import banner4Bg from '@/assets/img/mainIndex/banner4-bg.png';

export default {
  data() {
    return {
      activeIndex: '2',
      searchData: '', // 搜索
      tableData: [], // 交易区列表数据
      hotData: [], // 交易区热门交易对
      isFirst: true, // 第一次页面加载
      // browsed: JSON.parse(localStorage.getItem('browsed')) || '', // 公告浏览识别
      language: '',
      // more: {
      //   'zh-CN': 'https://newdex.zendesk.com/hc/zh-cn/categories/360000802432-%E5%85%AC%E5%91%8A%E4%B8%AD%E5%BF%83',
      //   'zh-TW': 'https://newdex.zendesk.com/hc/zh-tw/categories/360000802432-%E5%85%AC%E5%91%8A%E4%B8%AD%E5%BF%83',
      //   en: 'https://newdex.zendesk.com/hc/en-us/categories/360000802432-Announcements',
      //   ko: 'https://newdex.zendesk.com/hc/en-us/categories/360000802432-Announcements',
      // },
      detail: {
        'zh-CN': 'https://newdex.zendesk.com/hc/zh-cn/articles/360021256251-Newdex%E5%B9%B3%E5%8F%B0%E7%94%9F%E6%80%81%E9%80%9A%E8%AF%81%E4%BB%8B%E7%BB%8D',
        'zh-TW': 'https://newdex.zendesk.com/hc/zh-tw/articles/360021256251-Newdex%E5%B9%B3%E8%87%BA%E7%94%9F%E6%85%8B%E9%80%9A%E8%AD%89%E4%BB%8B%E7%B4%B9',
        en: 'https://newdex.zendesk.com/hc/en-us/articles/360021256251-Introduction-of-Newdex-Platform-Ecological-Token',
        ko: 'https://newdex.zendesk.com/hc/en-us/articles/360021256251-Introduction-of-Newdex-Platform-Ecological-Token',
      },
      detailTp: {
        'zh-CN': 'https://bidname.tokenpocket.pro/?from=newdex',
        'zh-TW': 'https://bidname.tokenpocket.pro/?from=newdex',
        en: 'https://bidname.tokenpocket.pro/?locale=en&from=newdex',
        ko: 'https://bidname.tokenpocket.pro/?locale=en&from=newdex',
      },
      detailBp: {
        'zh-CN': 'https://newdex.one/index-zh-CN.html',
        'zh-TW': 'https://newdex.one/index-zh-TW.html',
        en: 'https://newdex.one/index.html',
        ko: 'https://newdex.one/index-ko.html',
      },
      areaActive: 'EOS',
      shareShow: false,
      // noticeScrollTimer: null,
      websiteTip: false, // 网站提示
    };
  },
  watch: {
  },
  components: {
    vueNav,
    vueTable,
    MyVideo,
    NoticeContent,
    Banner,
    ActivityLayer,
    SymbolRecommend
  },
  created() {
    document.title = this.$t(`rout.${this.$route.meta.title}`);
  },
  mounted() {
    bus.$on('handleActiveChange', (params) => {
      this.areaActive = params.nameAbbreviation;
    });
    localStorage.setItem('jumpActivity', 1);
    // const jumpActivity = localStorage.getItem('jumpActivity');
    // if (!jumpActivity) {
    //   this.shareShow = true;
    // }
    // 网站提示
    const websiteTip = localStorage.getItem('websiteTip');
    if (!websiteTip) {
      this.websiteTip = true;
    }
  },
  methods: {
    // 日期截取 - 获取月-日
    handleTimeStr(timeStr) {
      return timeStr.substr(5, 5);
    },
    // 跳转到交易中心
    handleToTransaction() {
      const symTrad = this.$store.state.app.trade;
      let tradeParams = null;
      if (symTrad && symTrad.symbol) {
        tradeParams = symTrad.symbol;
      } else {
        tradeParams = 'newdexissuer-ndx-eos'
      }
      this.$router.push({
        path: `/trade/${tradeParams}`
      });
    },
    handleDownload() {
      this.$refs.androidDownload.click();
    },

    // go market 跳转行情
    handleGoMarket() {
      this.$router.push({ name: 'market' });
    },
    // 关闭分享
    handleCloseShare() {
      this.shareShow = false;
      localStorage.setItem('jumpActivity', 1);
    },
    // 关闭提示
    handleCloseWebsite() {
      this.websiteTip = false;
      localStorage.setItem('websiteTip', 1);
    },
    // 跳转到活动页面
    handleJumpActivity() {
      this.$router.push({
        path: '/events/ndx-eos-20190115'
      });
      localStorage.setItem('jumpActivity', 1);
    },
    handleBannerChange(val) {
      this.bannerChecked = val;
    },
    handleTolookDetail() {
      this.$refs.lookDetailAction.click();
    },
    handleToTpDetail() {
      this.$refs.lookTpDetailAction.click();
    },
    handleToBpDetail() {
      this.$refs.lookBpDetailAction.click();
    },
    // 获取标准时区
    handleGetTimeGMT() {
      return /GMT[+|-]\d{4}/.exec(new Date())[0];
    },
    // 跳转到未登录会员页面
    handleToNoLoggedMember() {
      const scat = this.$store.state.app.scatter;
      if (scat && scat.identity) {
        this.$router.push('/member');
        return;
      }
      this.$router.push('/member-not-logged');
    },
  },
};
</script>

<style lang="scss" scoped>
  @import "../../assets/css/variables.scss";

  .mt10{
    margin-top: 10px;
  }

  .main {
    background-color: #F2F3F8;
  }

  .share-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000 !important;
    .share-layer-content {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 480px;
      height: 460px;
      padding-top: 47px;
      transform: translate(-50%, -50%);
      background: url('../../assets/img/activity/ndx/group-bg.png') no-repeat;
      background-size: contain;
      p {
        text-align: center;
      }
      .activitySubTitle {
        text-align: center;
        font-size: 24px;
        color: #F5A623;
        padding: 0 30px;
      }
      .shareDown {
        padding: 0 30px;
        margin-top: 30px;
        p {
          font-size: 24px;
          color: #10143F;
          margin-bottom: 20px;
        }
        span {
          font-size: 30px;
          color: #FF1739;
        }
      }
      .actTime {
        font-size: 16px;
        color: #10143F;
        margin-top: 40px;
      }
      .icon-jiaoyitingzhi {
        position: absolute;
        right: -30px;
        top: -30px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
      }
      .layer-btn {
        position: absolute;
        bottom: 20px;
        left: 50%;
        width: 209px;
        height: 59px;
        line-height: 59px;
        font-size: 16px;
        text-align: center;
        transform: translate(-50%);
        background: url('../../assets/img/activity/ndx/ndx-btn.png') no-repeat;
        background: #0C5FF2 url('../../assets/img/mainIndex/banner4-bg.png') center no-repeat;
        background-size: contain;
        color: #8B572A;
        cursor: pointer;
      }
    }
  }

  .benefits-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;

    .benefits-cont {
      position: absolute;
      width: 469px;
      height: 378px;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: url('../../assets/img/activity/benefits/layer-en.png') no-repeat;
      background-size: 100% 100%;
      padding-top: 80px;
      z-index: 10001;

      img {
        display: block;
        width: 320px;
        margin: 0 auto;
      }

      .benefits-btn {
        position: absolute;
        bottom: 35px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(0deg, #FDF0A1 0%, #FFCD0D 97%);
        border-radius: 10px;
        padding: 15px 60px;
        cursor: pointer;
      }

      i {
        position: absolute;
        right: -24px;
        top: 8px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
      }
    }
  }

  .foolDayLayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000 !important;

    .foolDayCont {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 500px;
      height: 512px;

      .joinBtn {
        position: absolute;
        bottom: 73px;
        left: 50%;
        width: 300px;
        height: 60px;
        line-height: 60px;
        transform: translateX(-50%);
        text-align: center;
        background: transparent;
        border-radius: 14.49px;
        cursor: pointer;
      }

      .closeBtn {
        position: absolute;
        right: 5px;
        top: 5px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
      }
    }
  }

  .fish-layer {
    position: fixed;
    top: 55px;
    left: 30px;
    width: 320px;
    // height: 200px;
    background: #fff;
    z-index: 10000 !important;
    border-radius: 15px;
    padding: 35px 30px 20px 30px;
    color: #999;

    .triangle {
      position: absolute;
      top: -10px;
      left: 30px;
      width:0;
      height:0;
      border-width:0 10px 10px;
      border-style:solid;
      border-color:transparent transparent #fff;/*透明 透明  灰*/
    }

    .close-icon {
      display: inline-block;
      position: absolute;
      top: 10px;
      right: 15px;
      color: #333;
      font-size: 18px;
      cursor: pointer;
      color: #333;
    }

    .icon-logos {
      display: inline-block;
      position: absolute;
      top: 10px;
      left: 30px;
      color: rgb(6, 95, 255);
      font-size: 22px;
    }

    .icon-warm {
      display: inline-block;
      position: absolute;
      top: 36px;
      left: 10px;
      color: #F6C85C;
      font-size: 16px;
    }

    .website {
      padding-left: 15px;
      line-height: 30px;
      background: rgb(234, 235, 255);
      margin-top: 5px;

      i {
        margin-right: 10px;
        font-size: 18px;
        color: rgb(6, 208, 74);
      }
    }
  }

  .op8{
    width: 100%;
    opacity: .8;
    vertical-align: middle;
  }

  .mainView {
    text-align: center;
    width: $-min-width;
    margin: auto;

    img {
      width: 450px;
    }
  }
  .ewmPopover {
    p {
      font-size: 12px;
      padding-bottom: 5px;
      color: #278EDA;
    }
  }
  .devzdbox {
    width: 600px !important;
    line-height: 30px;
    text-align: center;

    img {
      display: block;
    }
    i {
      margin-right: 10px;
    }
  }

  .content {
    padding: 70px 0px;
  }

  .devBtn{
    background: transparent;
    width: 185px;
    // padding: 8px 15px;
    line-height: 40px;
    font-size: 14px;
    margin: 0px auto;
    color: #278EDA;
    height: 40px;
  }
  .devPop {
    width: 120px;
    font-size: 16px !important;
    i, span {
      display: inline-block;
    }
    i {
      vertical-align: bottom;
    }
    i:last-child {
      vertical-align: middle;
    }
  }

  .devBtnMany {
    background: transparent;
    width: 185px;
    // padding: 8px 15px;
    line-height: 40px;
    font-size: 14px;
    border: 1px solid #278EDA;
    border-radius: 8px;
    margin: 0px auto;
    color: #278EDA;
    height: 40px;
  }

  .more:hover{
    color: white;
    background: #278EDA;
  }

  .noticeScroll {
    transition: transform .4s ease-in-out;
  }

  .contentData{
    padding-bottom: 70px;

    .tableDiv{
      box-shadow: 0px 0px 15px #ddd;
    }

    .red{
      color: #FF1739;
    }

    .green{
      color: #01AA21;
    }

    /deep/ .is-active{
      color: #278EDA !important;
      border-bottom: 2px solid #278EDA;
    }

    .more{
      outline: none;
      margin-top: 20px;
      cursor: pointer;
    }

    .mainView{
      .flex{
        display: flex;

        .main-item{
          margin: 20px 0px;
          height: 100px;
          width: 24%;
          background-color: #fff;
          background-image: url('../../assets/img/mainIndex/bg-data.png');
          background-size: 105% 100%;
          background-repeat: no-repeat;
          background-position: -5px 0px;
          padding: 10px 20px;
          line-height: 25px;
          text-align: left;
          transition: .5s;

          div{
            line-height: 28px;
          }
        }
      }
    }

    .el-col:first-child .main-item{
      margin-left: 0px;
    }

    .el-col:last-child .main-item{
      margin-right: 0px;
    }

    .main-item:hover{
      box-shadow: 0px 5px 10px #acacac
    }

    .percent{
      &.fRight{
        float: right;
        margin-right: 10px;
      }
    }

    .selectInput{
      float: right;
      line-height: 60px;
      margin-right: 10px;
    }

    .iconPositioin{
      position: relative;
      top: -1px;
    }

    .table{
      width: 100%;
      background-color: #fff;
      margin-bottom: 30px;
      border-collapse: collapse;

      /deep/ .el-table__body .cell,
      /deep/ .el-table__header .cell{
        text-align: center;
        font-weight: normal;
      }

      .blue{
        color: #3A98DD;
      }

      .red{
        color: #FF1739;
      }

      .green{
        color: #01AA21;
      }

      .tableFooter{
        padding: 30px;
        text-align: center;
      }
    }
  }

  .contentCharacteristic {
    background-color: #fff;
    padding: 70px 0px 0px 0px;

    .characteristicTitle {
      font-size: 30px;
    }

    .items {
      // background-image: url('../../assets/img/mainIndex/bg-lines.png');
      background-repeat: no-repeat;
      padding: 60px 0px;
      background-size: contain;
      background-position: 600px 0px;

      .item-center {
        text-align: left;
        padding: 45px 0px 60px;
        margin: auto;
        width: 90%;

        .item-title {
          text-align: left;
          font-size: 23px;
          line-height: 75px;
        }

        .item-tip {
          word-wrap: break-word;
          word-break: normal;
          text-align: left;
          font-size: 18px;
          line-height: 36px;
        }
      }

      &.item-2 {
        background-position: -700px;
      }

      &.item-3 {
        background-position: 600px;
        padding-bottom: 85px;
      }

      &.item-4 {
        background-position: -700px;
      }
    }
  }

  .contentCooperation {
    .cooperationTitle {
      font-size: 28px;
      margin: 0 0 63px 0px;
    }

    .bgImg-items{
      .bgImg-item{
        width: 280px;
        height: 154px;
        transition: .5s;
        background-color: rgba(255, 255, 255, 0.8);
        background-image: url('../../assets/img/mainIndex/logo1.png');
        background-size: cover;
      }

      .el-col:nth-child(2) .bgImg-item{
        background-image: url('../../assets/img/mainIndex/logo2.png');
      }

      .el-col:nth-child(3) .bgImg-item{
        background-image: url('../../assets/img/mainIndex/logo3.png');
      }

      .el-col:last-child .bgImg-item{
        background-image: url('../../assets/img/mainIndex/logo4.png');
      }

      .el-col:first-child .bgImg-item:hover{
        background-image: url('../../assets/img/mainIndex/logo1-hover.png');
        box-shadow: 0px 5px 10px #acacac;
      }

      .el-col:nth-child(2) .bgImg-item:hover{
        background-image: url('../../assets/img/mainIndex/logo2-hover.png');
        box-shadow: 0px 5px 10px #acacac;
      }

      .el-col:nth-child(3) .bgImg-item:hover{
        background-image: url('../../assets/img/mainIndex/logo3-hover.png');
        box-shadow: 0px 5px 10px #acacac;
      }

      .el-col:last-child .bgImg-item:hover{
        background-image: url('../../assets/img/mainIndex/logo4-hover.png');
        box-shadow: 0px 5px 10px #acacac;
      }
    }
  }

  .contentMoreDev {
    background-size: contain;
    background-position: 0px 50px;
    background-repeat: no-repeat;
    padding: 85px 0px 95px;

    .devTitle {
      font-size: 30px;
      // font-weight: 300;
      line-height: 56px;
    }
    .subDevTitle{
      font-size: 16px;
      // font-weight: 200;
      line-height: 40px;
      padding: 6px 0px;
    }

    .dev {
      padding-top: 60px;
      width: 800px;
      margin: auto auto;
    }
  }
  .contentLeader {
    .icon-huaban {
      font-size: 70px;
      color: #278EDA;
    }

    .leaderTip{
      margin: 40px auto;
      // background-image: url('../../assets/img/mainIndex/leadTipLight.png');
      font-size: 65px;
      font-weight: 100;
      color: black;
    }

    .leaderBtn {
      width: 120px;
      height: 30px;
      font-size: 18px;
      margin: 0px 20px;
      box-sizing: initial;
      padding: 5px;
    }
  }

  // 首页-白天模式/夜间模式 切换
  .theme-278EDA{
    color: black;
  }

  .theme-1B1D27{
    .main {
      background: $-black2;
      color: rgba(255, 255, 255, 0.8);
    }

    .devBtn{
      border-color: #4e5b85;
    }

    .contentData{
      .flex{
        .main-item{
          background-color: $-black1;
          background-image: url('../../assets/img/mainIndex/bg-data-night.png');
        }

        .main-item:hover{
          box-shadow: 0px 5px 15px rgba(0, 0, 0, .4);
        }
      }

      .tableDiv{
        box-shadow: 0px 0px 15px rgba(0, 0, 0, .4);
      }

      .el-menu{
        background-color: #494D57;
      }

      .is-active{
        background-color: #494D57 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 2px solid #F9F9F9;
      }

      .table{
        background-color: #1C212D;

        tr{
          border: 0px !important;
        }

        tr:nth-child(2n-1){
          background-color: #212531;
        }

        tr:hover{
          background-color: #494D57;
        }
      }
    }

    .contentCooperation {
      .bgImg-items{
        .bgImg-item{
          background-color: $-black1;
        }

        .el-col .bgImg-item:hover{
          box-shadow: 0px 5px 15px rgba(0, 0, 0, .4);
        }
      }
    }


    .contentMoreDev,
    .contentCharacteristic{
      background-color: $-black2;
    }
    .contentMoreDev {
      background-color: rgba(255, 255, 255, 0.05)
    }

    .contentLeader{
      .leaderTip{
        color: rgba(255, 255, 255, 0.8);
        // background-image: url('../../assets/img/mainIndex/leadTipNight.png');
      }
    }
  }

  /deep/ .el-carousel {
    padding: 0 0px;
  }
  /deep/ .el-carousel__arrow--right {
    right: -36px;
  }

  /deep/ .el-carousel__arrow--left {
    left: -36px;
  }
</style>
